package edu.ccut.saturn.studio.wfg.policy;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Locator;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.handles.ResizeHandle;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Cursor;

public class CustomResizeHandle extends ResizeHandle {
	public CustomResizeHandle(GraphicalEditPart owner, int direction) {
		super(owner, direction);
	}

	public CustomResizeHandle(GraphicalEditPart owner, Locator loc, Cursor c) {
		super(owner, loc, c);
	}

	protected Color getBorderColor() {
		return (isPrimary()) ? ColorConstants.white : new Color(null, 115, 115,
				115);
	}

	protected Color getFillColor() {
		return (isPrimary()) ? new Color(null, 115, 115, 115)
				: ColorConstants.white;
	}
}